/* 
轮播图区域
*/

.banner_area {
  position: relative;
  height: 300px;
  min-width: 1240px;
  z-index: 10;
  .mod-entry {
    position: relative;
    width: 1200px;
    margin: 0 auto;
    z-index: 20;
    //登录的状态框
    .entry_login {
      position: absolute;
      top: 20px;
      right: 0;
      overflow: hidden;
      display: inline-block;
      height: 80px;
      width: 220px;
      vertical-align: top;
      text-align: center;
      border-radius: 3px;
      visibility: visible;
      line-height: 50px;
      background-color: #fff;
      height: auto;
      box-shadow: 0 1px 10px 3px rgba(0, 0, 0, 0.1);
      //未登录
      .unlogin {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        p {
          font-size: 16px;
          color: #999;
        }
        .img {
          width: 170px;
          height: 130px;
          background: url("../../images/index-sprite.png") no-repeat -144px -370px;
          margin: 10px auto auto;
        }
        a {
          display: inline-block;
          line-height: 50px;
          width: 200px;
          margin: 10px 0;
          font-size: 16px;
          border-radius: 3px;
          background-color: #23b8ff;
          color: #fff;
          display: inline-block;
          vertical-align: middle;
          cursor: pointer;
          font-size: 14px;
          text-align: center;
          border-radius: 2px;
          border: 0;
          user-select: none;
        }
        a:hover {
          background-color: #12a7ff;
        }
      }

      //已登录
      .suclogin {
        //   display: none;
        box-sizing: border-box;
        padding: 20px 20px 10px 20px;
        .userinfo {
          display: flex;
          justify-content: space-between;
          align-items: center;
          img {
            width: 40px;
            height: 40px;
            vertical-align: middle;
          }
        }
      }
    }
  }
  .banner_container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    .swiper-container {
      width: 100%;
      height: 100%;
      .swiper-pagination {
        left: -10%;
        text-align: none;
      }
      .swiper-pagination-bullet {
        width: 45px;
        height: 2.5px;
        display: inline-block;
        border-radius: 20px;
        // background: #000;
        opacity: 0.8;
      }
      .swiper-button-next {
        right: 26%;
      }
      .swiper-button-prev {
        left: 15%;
      }
    }
    .swiper-slide {
      overflow: hidden;
      position: relative;
      img {
        position: absolute;
        left: 40%;
        transform: translateX(-40%);
        width: 710px;
        height: 300px;
      }
    }
  }
}

//tab栏
.cate-tab {
  width: 100%;
  text-align: center;
  position: relative;
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  .top {
    li {
      margin-left: 2px;
      display: inline-block;
      padding: 25px 12px;
      position: relative;
      font-size: 20px;
      cursor: pointer;
      color: #666;
    }
    .xuanzhong {
      color: #23b8ff;
      border-bottom: 4px solid #23b8ff;
    }
  }
}

//中部状态栏
.cate_item {
  display: none;
  margin-top: 55px;
  background-color: #fff;
}
#front,
#mobile ,#xingqu{
  h2 {
    text-align: center;
    line-height: 30px;
    font-size: 30px;
  }
}

//直播
.select_live {
  margin-top: 40px;
  display: flex;
  .live_content {
    width: 620px;
    height: 348px;
    & > div {
      position: relative;
      width: 100%;
      height: 100%;
      display: none;
      &::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 3;
      }

      a {
        position: relative;
        display: block;
        width: 100%;
        height: 100%;
        img {
          position: absolute;
          width: 100%;
          height: 100%;
          left: 0;
          top: 0;
          z-index: 1;
        }
      }
      .text_tit {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        .desc_p {
          color: #fff;
          overflow: hidden;
          white-space: nowrap;
          -o-text-overflow: ellipsis;
          text-overflow: ellipsis;
          word-wrap: normal;
          display: block;
          font-size: 24px;
          line-height: 24px;
          text-shadow: 0 0 20px hsla(0, 0%, 40%, 0.5);
        }
        .quickSignUp {
          display: block;
          margin: 30px auto 0;
          border-radius: 2px;
          width: 180px;
          height: 50px;
          line-height: 50px;
          font-size: 20px;
          text-align: center;
          color: #fff;
          background-color: #23b8ff;
        }
      }
    }
  }
  .wrapper {
    position: relative;
    width: 580px;
    height: 348px;
    .time-axis {
      position: absolute;
      border-left: 2px dotted #e8e8e8;
      height: 100%;
      left: 43px;
      z-index: 1;
    }
    #left,
    #left2 {
      position: absolute;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      list-style: disc;
      li {
        flex: 1;
        display: flex;
        align-items: center;
        background-color: #f4f4f4;
        position: relative;
        font-size: 16px;
        &:hover {
          background-color: #fff;
          border-left: 5px solid #23b8fe;
          b {
            color: #23b8fe;
          }
          span {
            color: #23b8fe;
          }
        }
        span {
          color: #bbbbbb;
          margin-left: 72px;
          margin-right: 35px;
          color: #bbb;
        }
        .living {
          color: #23b8fe;
        }
        b {
          position: absolute;
          color: #bbbbbb;
          font-size: 30px;
          left: 37px;
          font-weight: 700;
          z-index: 2;
        }
        img {
          position: absolute;
          left: 31px;
          z-index: 2;
        }
      }
    }
  }
}

// 腾讯课堂官方推荐
.recommended_area {
  margin-top: 55px;
  display: flex;
  justify-content: space-between;
  li {
    vertical-align: top;
    width: 285px;
    font-size: 14px;
    transition: all 0.3s;
    &:hover {
      margin-top: -10px;
      box-shadow: 0 1px 10px 3px rgba(0, 0, 0, 0.1);
    }
    .item-hd {
      position: relative;
      display: block;
      padding: 0 20px;
      color: #fff;
      height: 160px;
      line-height: 160px;
      .item-cover {
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
      }
      .item-hd-mask {
        background-color: rgba(0, 0, 0, 0.65);
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
      }
      .item-hd-wrap {
        width: 100%;
        display: inline-block;
        vertical-align: middle;
        position: relative;
        z-index: 10;
        .item-tt {
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          word-wrap: normal;
          font-size: 22px;
          line-height: 30px;
          margin-bottom: 20px;
        }
        .item-wording {
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          word-wrap: normal;
          line-height: 20px;
          margin-top: 2px;
        }
      }
    }
    .item-bd {
      height: 160px;
      padding-bottom: 81px;
      max-height: 160px;
      .item-bd-wrap {
        display: block;
        color: #bbb;
        min-height: 160px;
        max-height: 160px;
        overflow: hidden;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        padding: 17px 20px 16px;
        border: 1px solid #e9e9e9;
        background-color: #fff;
        .item-ctt {
          line-height: 19px;
          padding-bottom: 2px;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
        }
        .item-content {
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          word-wrap: normal;
          font-size: 16px;
          line-height: 19px;
          margin-top: 16px;
          span {
            color: #777;
            margin-left: 13px;
          }
        }
      }
    }
  }
}

// 精选公开课
.course-card-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  li {
    width: 220px;
    height: 230px;
    position: relative;
    overflow: hidden;
    margin-top: 15px;
    transition: all 0.3s;
    &:hover {
      box-shadow: 0 1px 10px 3px rgba(0, 0, 0, 0.1);
      margin-top: 5px;
    }
    .item-img-link {
      position: relative;
      display: block;
      margin-bottom: 8px;
      .item-img {
        display: block;
        width: 220px;
        height: 124px;
      }
      .item-status {
        position: absolute;
        width: 220px;
        height: 24px;
        line-height: 24px;
        font-size: 12px;
        color: #fff;
        top: 100px;
        overflow: hidden;
      }
    }
    .item-tt {
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      height: 40px;
      font-size: 14px;
      margin-bottom: 6px;
      position: relative;
      .item-tt-link {
        word-wrap: break-word;
        white-space: pre-wrap;
        word-break: break-all;
        font-size: 14px;
        line-height: 20px;
      }
    }
    .item-line {
      margin-bottom: 3px;
      overflow: hidden;
      margin-top: 0;
      height: 18px;
      font-size: 12px;
      span {
        color: #999;
      }
      .item-source-link {
        max-width: 163px;
        color: #999;
        margin-left: 8px;
        &::before {
          content: "";
          width: 1px;
          height: 12px;
          background-color: #ddd;
          display: inline-block;
          vertical-align: -1px;
          margin-right: 8px;
        }
      }
      .item-source-tag {
        display: inline-block;
        margin-top: 1px;
        margin-left: 4px;
        width: 16px;
        height: 16px;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        background-image: url("../../images/index/renzheng.png");
        background-size: contain;
        vertical-align: bottom;
      }
    }
    .item-line--bottom {
      height: 24px;
      line-height: 24px;
      .item-price {
        color: #f4621f;
        font-size: 14px;
      }
      .item-discount-tag {
        color: #f4621f;
        padding: 1px;
        margin: 2px;
        font-size: 12px;
        line-height: 12px;
        border: 1px solid;
        border-radius: 3px;
        transform: scale(0.8);
      }
      .item-price--origin {
        font-size: 12px;
        color: #999;
        margin-left: 2px;
        text-decoration: line-through;
      }
      .item-user {
        color: #999;
        margin-left: 10px;
      }
    }
  }
}

// 热门知识
.knowledge {
  a {
    display: inline-block;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    padding: 6px 14px;
    margin-right: 16px;
    margin-bottom: 16px;
    color: #333;
  }
}
